import request from '@/utils/request'

// 包车订单-选择车型方案列表
export function classificationMoldelList(query) {
  return request({
    url: '/charteredBus/order/classificationMoldelList',
    method: 'get',
    params: query
  })
}
// 包车订单-选择方案回显
export function confirmationOrder(data) {
  return request({
    url: '/charteredBus/order/confirmationOrder',
    method: 'post',
    data: data
  })
}
// 包车订单-新增订单
export function charteredBusadd(data) {
  return request({
    url: '/charteredBus/order',
    method: 'post',
    data: data
  })
}
// 包车订单-修改订单
export function charteredBusUpdate(data) {
  return request({
    url: '/charteredBus/order',
    method: 'put',
    data: data
  })
}

// 包车订单-选择司机列表
export function getDriverList(query) {
  return request({
    url: '/charteredBus/order/getDriverList',
    method: 'get',
    params: query
  })
}


// 包车订单-修改订单信息
export function charteredBuseditInfo(orderNo) {
  return request({
    url: `/charteredBus/order/editInfo/${orderNo}`,
    method: 'get'
  })
}
